import axios from "./axios.js"

// 获取最新文章
export const getNewsArticleList = async ()=>{
  return await axios.get('/article/getNewsArticleList')
}

export const getAllarticle = async ({page = 1 ,size = 5}) => {
  return await axios.get('/article/getAllArticles', {
      params: {
          page,
          size
      }
  })
}

export const getReview =  async ()=>{
  return await axios.get('/review/getAllReviews')
}

